package com.bigchui.DesignPattern.FactoryPattern.AbstractFactory;

import com.bigchui.DesignPattern.FactoryPattern.ICourse;
import com.bigchui.DesignPattern.FactoryPattern.JavaCourse;

/**
 * Created by wangzhen on 2019/3/9.
 */
public class JavaFactory implements ICourseFactory {
    @Override
    public ICourse create() {
        return new JavaCourse();
    }

    @Override
    public INote createNote() {
        return new JavaNote();
    }

    @Override
    public IVideo createVideo() {
        return new JavaVideo();
    }
}
